let str = `eadme.md
document.pdf
image.png
music.mp4
manual.pdf`;

// console.log(str.match(/^\w+\.pdf$/gm));

let tel = "010 - 99999999";
console.log(tel.match(/\d+\s-\s\d{8}/));
